package com.wosai.register.service;

import static org.junit.Assert.assertEquals;
import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.wosai.register.model.Product;
import com.wosai.register.service.CoreService;

public abstract class AbstractTestCoreService {

	@Autowired
	protected CoreService _coreService;
	

    @Test
    @Transactional
    public void testProducts()
    {
        List<Product> products = _coreService.findProductsByTerminal("1");
        assertEquals(2, products.size());
    }

}
